package com.yx.exception;

/**
 * @Classname StockMsg
 * @Date 2021/07/21 19:03
 * @Author by yx
 * @Description TODO:
 */
public enum StockMsg {
    UNLOCK_STOCK_ERROR(5001, "扣减库存失败");

    private Integer code;

    private String msg;

    StockMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
